Ext.apply(Ext.form.VTypes, {
	password: function(val, field)     
  {    
        if (field.tocompare)     
        {    
            var pwd = Ext.ComponentQuery.query(field.tocompare)[0]
            return (val == pwd.getValue());     
        }    
      return false;
  },    
  passwordText: '两次输入的密码不一致！'
})